package org.wlw.arr;

public class TestObjArr {
	public static void main(String[] args) {
		Fish[] fs = new Fish[5];
		fs[0] = new Fish("A");
		fs[1] = new Fish("B");
		fs[2] = new Fish("C");
		fs[3] = new Fish("D");
		fs[4] = new Fish("E");
		for(int i=0;i<fs.length;i++) {
			fs[i].show();
		}
	}
}

class Fish {
	Fish(String name) {
		this.name = name;
	}
	String name;
	
	public void show() {
		System.out.println(name);
	}
}
